Getting Started with Kubernetes by Jonathan Baier

Getting Started with Kubernetes by Jonathan Baier
Author: Jonathan Baier [Baier, Jonathan]
Language: eng
Format: epub, pdf
Publisher: Packt Publishing
Published: 2015-12-21

Listing 3-13: http-pd-controller.yaml

Let's also create an external service, so we can see it from outside the cluster:

apiVersion: v1 kind: Service metadata: name: http-pd labels: name: http-pd spec: type: LoadBalancer ports: - name: http protocol: TCP port: 80 selector: name: http-pd

Listing 3-14: http-pd-service.yaml

Go ahead and create these two resources now. Wait a few moments for the external IP to get assigned. After this, a describe command will give us the IP we can use in a browser:

$ kubectl describe service/http-pd